package com.bestcem.xm.award.controller.param.award;

import com.bestcem.xm.award.enums.AwardStatusEnum;
import com.bestcem.xm.award.enums.AwardTypeEnum;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 查询奖励controller层请求体
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v3.0
 * @date 2021/8/17 16:49
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class GetAwardParam implements Serializable {

    /**
     * 奖励id
     */
    private String id;

    /**
     * 分页
     */
    private Integer page;

    /**
     * 每页大小
     */
    private Integer size;

    /**
     * 公司id
     */
    @JsonProperty(value = "org_id")
    private String orgId;

    /**
     * 项目id
     */
    @JsonProperty(value = "project_id")
    private String projectId;

    /**
     * 排序方式
     */
    @JsonProperty(value = "order_by")
    private String orderBy;

    /**
     * 奖励类型 {@link AwardTypeEnum}
     */
    @JsonProperty(value = "type")
    private List<Integer> types;

    /**
     * 奖励状态 {@link AwardStatusEnum}
     */
    private List<Integer> statuses;

    /**
     * 要排序在前面的id
     */
    @JsonProperty(value = "first_id")
    private String firstId;

}
